package com.traval.goods.models;

import java.util.HashSet;
import java.util.Set;


/**
 * TGoods entity. @author MyEclipse Persistence Tools
 */

public class TGoods implements java.io.Serializable {

	// Fields

	private Integer gid;
	private Double price;
	private Integer count;
	private String name;
	private Set<TPlaneticket> TPlanetickets = new HashSet<TPlaneticket>();
	private Set<TRoom> TRooms = new HashSet<TRoom>();
	private Set<TTravalticket> TTravaltickets = new HashSet<TTravalticket>();
	// Constructors

	/** default constructor */
	public TGoods() {
	}

	/** minimal constructor */
	public TGoods(Double price, Integer count, String name) {
		this.price = price;
		this.count = count;
		this.name = name;
	}

	/** full constructor */
	public TGoods(Double price, Integer count, String name, Set TPlanetickets, Set TRooms,
			Set TTravaltickets) {
		this.price = price;
		this.count = count;
		this.name = name;
		this.TTravaltickets = TTravaltickets;
		this.TRooms = TRooms;
		this.TPlanetickets = TPlanetickets;
	}

	// Property accessors

	public Integer getGid() {
		return this.gid;
	}

	public void setGid(Integer gid) {
		this.gid = gid;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Integer getCount() {
		return this.count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set getTRooms() {
		return this.TRooms;
	}

	public void setTRooms(Set TRooms) {
		this.TRooms = TRooms;
	}

	public Set getTPlanetickets() {
		return this.TPlanetickets;
	}

	public void setTPlanetickets(Set TPlanetickets) {
		this.TPlanetickets = TPlanetickets;
	}

	public Set getTTravaltickets() {
		return this.TTravaltickets;
	}

	public void setTTravaltickets(Set TTravaltickets) {
		this.TTravaltickets = TTravaltickets;
	}
}